package a07demo7;

public class test79 {
    public static void main(String[] args) {
        Basketball b = new Basketball("张三",34);
        System.out.println(b.getName()+","+b.getAge());
        b.sport();

        Basketballer bs = new Basketballer("李四",16);
        System.out.println(bs.getName()+","+bs.getAge());
        bs.sport();


        Tenniser t = new Tenniser("王五",14);
        System.out.println(t.getName()+","+t.getAge());
        t.english();
        t.sport();


        Tennis te = new Tennis("张六",32);
        System.out.println(te.getName()+","+te.getAge());
        te.english();
        te.sport();


    }
}
